package com.hospital.pharmacy.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class OverdueInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OverdueInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMdcNumIsNull() {
            addCriterion("mdc_num is null");
            return (Criteria) this;
        }

        public Criteria andMdcNumIsNotNull() {
            addCriterion("mdc_num is not null");
            return (Criteria) this;
        }

        public Criteria andMdcNumEqualTo(String value) {
            addCriterion("mdc_num =", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumNotEqualTo(String value) {
            addCriterion("mdc_num <>", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumGreaterThan(String value) {
            addCriterion("mdc_num >", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_num >=", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumLessThan(String value) {
            addCriterion("mdc_num <", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumLessThanOrEqualTo(String value) {
            addCriterion("mdc_num <=", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumLike(String value) {
            addCriterion("mdc_num like", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumNotLike(String value) {
            addCriterion("mdc_num not like", value, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumIn(List<String> values) {
            addCriterion("mdc_num in", values, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumNotIn(List<String> values) {
            addCriterion("mdc_num not in", values, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumBetween(String value1, String value2) {
            addCriterion("mdc_num between", value1, value2, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNumNotBetween(String value1, String value2) {
            addCriterion("mdc_num not between", value1, value2, "mdcNum");
            return (Criteria) this;
        }

        public Criteria andMdcNameIsNull() {
            addCriterion("mdc_name is null");
            return (Criteria) this;
        }

        public Criteria andMdcNameIsNotNull() {
            addCriterion("mdc_name is not null");
            return (Criteria) this;
        }

        public Criteria andMdcNameEqualTo(String value) {
            addCriterion("mdc_name =", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameNotEqualTo(String value) {
            addCriterion("mdc_name <>", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameGreaterThan(String value) {
            addCriterion("mdc_name >", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameGreaterThanOrEqualTo(String value) {
            addCriterion("mdc_name >=", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameLessThan(String value) {
            addCriterion("mdc_name <", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameLessThanOrEqualTo(String value) {
            addCriterion("mdc_name <=", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameLike(String value) {
            addCriterion("mdc_name like", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameNotLike(String value) {
            addCriterion("mdc_name not like", value, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameIn(List<String> values) {
            addCriterion("mdc_name in", values, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameNotIn(List<String> values) {
            addCriterion("mdc_name not in", values, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameBetween(String value1, String value2) {
            addCriterion("mdc_name between", value1, value2, "mdcName");
            return (Criteria) this;
        }

        public Criteria andMdcNameNotBetween(String value1, String value2) {
            addCriterion("mdc_name not between", value1, value2, "mdcName");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountIsNull() {
            addCriterion("ovd_rec_count is null");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountIsNotNull() {
            addCriterion("ovd_rec_count is not null");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountEqualTo(Integer value) {
            addCriterion("ovd_rec_count =", value, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountNotEqualTo(Integer value) {
            addCriterion("ovd_rec_count <>", value, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountGreaterThan(Integer value) {
            addCriterion("ovd_rec_count >", value, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("ovd_rec_count >=", value, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountLessThan(Integer value) {
            addCriterion("ovd_rec_count <", value, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountLessThanOrEqualTo(Integer value) {
            addCriterion("ovd_rec_count <=", value, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountIn(List<Integer> values) {
            addCriterion("ovd_rec_count in", values, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountNotIn(List<Integer> values) {
            addCriterion("ovd_rec_count not in", values, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountBetween(Integer value1, Integer value2) {
            addCriterion("ovd_rec_count between", value1, value2, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecCountNotBetween(Integer value1, Integer value2) {
            addCriterion("ovd_rec_count not between", value1, value2, "ovdRecCount");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationIsNull() {
            addCriterion("ovd_rec_illustration is null");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationIsNotNull() {
            addCriterion("ovd_rec_illustration is not null");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationEqualTo(String value) {
            addCriterion("ovd_rec_illustration =", value, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationNotEqualTo(String value) {
            addCriterion("ovd_rec_illustration <>", value, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationGreaterThan(String value) {
            addCriterion("ovd_rec_illustration >", value, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationGreaterThanOrEqualTo(String value) {
            addCriterion("ovd_rec_illustration >=", value, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationLessThan(String value) {
            addCriterion("ovd_rec_illustration <", value, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationLessThanOrEqualTo(String value) {
            addCriterion("ovd_rec_illustration <=", value, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationLike(String value) {
            addCriterion("ovd_rec_illustration like", value, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationNotLike(String value) {
            addCriterion("ovd_rec_illustration not like", value, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationIn(List<String> values) {
            addCriterion("ovd_rec_illustration in", values, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationNotIn(List<String> values) {
            addCriterion("ovd_rec_illustration not in", values, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationBetween(String value1, String value2) {
            addCriterion("ovd_rec_illustration between", value1, value2, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecIllustrationNotBetween(String value1, String value2) {
            addCriterion("ovd_rec_illustration not between", value1, value2, "ovdRecIllustration");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonIsNull() {
            addCriterion("ovd_rec_person is null");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonIsNotNull() {
            addCriterion("ovd_rec_person is not null");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonEqualTo(String value) {
            addCriterion("ovd_rec_person =", value, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonNotEqualTo(String value) {
            addCriterion("ovd_rec_person <>", value, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonGreaterThan(String value) {
            addCriterion("ovd_rec_person >", value, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonGreaterThanOrEqualTo(String value) {
            addCriterion("ovd_rec_person >=", value, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonLessThan(String value) {
            addCriterion("ovd_rec_person <", value, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonLessThanOrEqualTo(String value) {
            addCriterion("ovd_rec_person <=", value, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonLike(String value) {
            addCriterion("ovd_rec_person like", value, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonNotLike(String value) {
            addCriterion("ovd_rec_person not like", value, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonIn(List<String> values) {
            addCriterion("ovd_rec_person in", values, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonNotIn(List<String> values) {
            addCriterion("ovd_rec_person not in", values, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonBetween(String value1, String value2) {
            addCriterion("ovd_rec_person between", value1, value2, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecPersonNotBetween(String value1, String value2) {
            addCriterion("ovd_rec_person not between", value1, value2, "ovdRecPerson");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateIsNull() {
            addCriterion("ovd_rec_date is null");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateIsNotNull() {
            addCriterion("ovd_rec_date is not null");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateEqualTo(Date value) {
            addCriterionForJDBCDate("ovd_rec_date =", value, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("ovd_rec_date <>", value, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateGreaterThan(Date value) {
            addCriterionForJDBCDate("ovd_rec_date >", value, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("ovd_rec_date >=", value, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateLessThan(Date value) {
            addCriterionForJDBCDate("ovd_rec_date <", value, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("ovd_rec_date <=", value, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateIn(List<Date> values) {
            addCriterionForJDBCDate("ovd_rec_date in", values, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("ovd_rec_date not in", values, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("ovd_rec_date between", value1, value2, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("ovd_rec_date not between", value1, value2, "ovdRecDate");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkIsNull() {
            addCriterion("ovd_rec_remark is null");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkIsNotNull() {
            addCriterion("ovd_rec_remark is not null");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkEqualTo(String value) {
            addCriterion("ovd_rec_remark =", value, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkNotEqualTo(String value) {
            addCriterion("ovd_rec_remark <>", value, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkGreaterThan(String value) {
            addCriterion("ovd_rec_remark >", value, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("ovd_rec_remark >=", value, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkLessThan(String value) {
            addCriterion("ovd_rec_remark <", value, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkLessThanOrEqualTo(String value) {
            addCriterion("ovd_rec_remark <=", value, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkLike(String value) {
            addCriterion("ovd_rec_remark like", value, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkNotLike(String value) {
            addCriterion("ovd_rec_remark not like", value, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkIn(List<String> values) {
            addCriterion("ovd_rec_remark in", values, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkNotIn(List<String> values) {
            addCriterion("ovd_rec_remark not in", values, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkBetween(String value1, String value2) {
            addCriterion("ovd_rec_remark between", value1, value2, "ovdRecRemark");
            return (Criteria) this;
        }

        public Criteria andOvdRecRemarkNotBetween(String value1, String value2) {
            addCriterion("ovd_rec_remark not between", value1, value2, "ovdRecRemark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}